//
//  ShoppingCarTableViewCell.h
//  AmountBody
//
//  Created by smm on 2017/12/19.
//  Copyright © 2017年 RCMTM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShoppingCarModel.h"
#import "HJShapedImageView.h"
typedef enum {
    ButtonTypeForTG = 100,
    ButtonTypeForMTO,
    ButtonTypeForYTJ,//预提交
    ButtonTypeForBJ,
    ButtonTypeForZCGM,
    ButtonTypeForSC,
}ButtonType;
typedef void (^ColorChooseBlock)(ShoppingCarModel* model);//点击标签编辑颜色
typedef void (^ButtonTypeBlock)(ButtonType type);
@interface ShoppingCarTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIView *newsView;
@property (weak, nonatomic) IBOutlet UIButton *chooseButton;
- (IBAction)chooseButton:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UIImageView *headImage;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;
@property (weak, nonatomic) IBOutlet UILabel *newsLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UIView *addView;
@property (weak, nonatomic) IBOutlet UIButton *a_chooseButton;
- (IBAction)a_chooseButton:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UILabel *a_label;
@property (weak, nonatomic) IBOutlet HJShapedImageView *tagView;
@property (weak, nonatomic) IBOutlet UIImageView *t_xingImage;
@property (weak, nonatomic) IBOutlet UILabel *t_label;
@property (weak, nonatomic) IBOutlet UIView *numberView;
@property (weak, nonatomic) IBOutlet UILabel *n_namelabel;
@property (weak, nonatomic) IBOutlet UIView *n_view;
@property (weak, nonatomic) IBOutlet UIButton *n_cutButton;
- (IBAction)n_cutButton:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UIButton *n_addButton;
- (IBAction)n_addButton:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UITextField *n_text;


@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet UIButton *moreButton;
- (IBAction)moreButton:(UIButton *)sender;

@property (weak, nonatomic) IBOutlet UIView *tanchuView;
@property (weak, nonatomic) IBOutlet UIImageView *tanchuImage;

@property (assign, nonatomic) BOOL isTanchu;

@property (strong, nonatomic) ShoppingCarModel * model;

-(void)setCellWithModel:(ShoppingCarModel*)model;
+(void)blockForColorChooseView:(ColorChooseBlock)colorBlock;
+(void)blockForButtonType:(ButtonTypeBlock)typeBlock;
@end
